<template>
  <van-sticky>
    <van-nav-bar
      title="前处理"
      left-text="返回"
      left-arrow
      @click-left="$router.replace('/home')"
    />
    <van-tabs v-model:active="active" animated @change="onChange">
      <van-tab title="待前处理"></van-tab>
      <van-tab title="全部"></van-tab>
    </van-tabs>
  </van-sticky>
  <div style="height: 0.1rem"></div>

  <common-group :descObj="descObj" ref="commonGroupRef"></common-group>
</template>


<script setup >
import { ref, reactive } from "vue";
import { useRouter } from "vue-router";
import { tip, get, post, del, removeLocalToken, store } from "@/common";
import CommonGroup from "@/components/common-group.vue";

const commonGroupRef = ref();

const active = ref(0);
const onChange = (index, title) => {
  if (index == 0) {
    commonGroupRef.value.refresh({ pd_id: 1010, pageNo: 1 });
  } else {
    commonGroupRef.value.refresh({ pageNo: 1 });
  }
  
};

const descObj = {
  urlMark: "pretreat",

  previousPdIds: [1010],
  defaultQueryPdIds: "1010",
  currentPdId: 1020,

  previousNode: [
    {
      colLabel: "投坯量",
      colProp: "group_num",
    }
  ],
  currentNode: {
    colLabel: "前处理量",
    colProp: "pretreat_num",
  },
};
</script>

<style scoped >
</style>